package com.yfp.operation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.operation.domain.MachineClientLiveness;
import com.yfp.operation.service.MachineClientLivenessService;
import com.yfp.operation.mapper.MachineClientLivenessMapper;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;

import java.util.Date;
import java.util.List;

/**
 * @author admin
 * @description 针对表【machine_client_liveness(设备客户活跃表)】的数据库操作Service实现
 * @createDate 2024-05-28 12:41:34
 */
@Service
public class MachineClientLivenessServiceImpl extends ServiceImpl<MachineClientLivenessMapper, MachineClientLiveness> implements MachineClientLivenessService {

    @Resource
    private MachineClientLivenessMapper machineClientLivenessMapper;

    /**
     * 根据设备id获取本月活跃度的天数（号数，多少多好号记录的）
     * @param machineIds
     * @return
     */
    @Override
    public List<Date> getDays(List<String> machineIds) {
        return machineClientLivenessMapper.getDays(machineIds);
    }
}




